package com.itheima02.day05;

/**
 * @author 刘全
 * @date 2021/7/21
 */
public class Student {
    String sb;
    String age;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Student student = (Student) o;

        if (sb != null ? !sb.equals(student.sb) : student.sb != null) return false;
        return age != null ? age.equals(student.age) : student.age == null;
    }


    public Student(String sb, String age) {

        this.sb = sb;
        this.age = age;
    }

    public Student() {

    }
}
